﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo
{
    [NHibernateEntity(Table = "Countries", Lazy = true)]
    public class Country
    {
        public Country() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [Property]
        public virtual string Name { get; set; }

        [BelongsTo(Column = "ID_Language")]
        public virtual Language Language { get; set; }

        [BelongsTo(Column = "ID_Currency")]
        public virtual Currency Currency { get; set; }


        [Property]
        public virtual bool SaturdayIsLegalHoliday { get; set; }

        [Property]
        public virtual bool SundayIsLegalHoliday { get; set; }
    }
}
